import request from "@/utils/request";

// 查询1列表
export function listJdal(query) {
  return request({
    url: "/system/jdal/list",
    method: "get",
    params: query,
  });
}

// 查询1详细
export function getJdal(id) {
  return request({
    url: "/system/jdal/" + id,
    method: "get",
  });
}

// 新增1
export function addJdal(data) {
  return request({
    url: "/system/jdal",
    method: "post",
    data: data,
  });
}

// 经典案例
export function updateJdal(data) {
  return request({
    url: "/system/jdal",
    method: "put",
    data: data,
  });
}

// 删除1
export function delJdal(id) {
  return request({
    url: "/system/jdal/" + id,
    method: "delete",
  });
}
